package com.irssproject.app.utils;



public class FeedToXMLParser {
/*
	
	public static String generateXMLCarrot2Format(ArrayList items){
		
		Iterator<HashMap<String,Object>> it = items.iterator();

		Source source;
		String content;
		String xml="";
		xml+="<?xml version=\"1.0\" encoding='iso-8859-1'?>";
		xml+="<searchresult>";
		xml+="<query>Feed formated</query>";
		
		int i=0;
		
		while (it.hasNext())
		{
			HashMap<String,Object> hm = it.next();
			xml+="<document id=\""+i+"\">";
			xml+="<title>";
			xml+=""+hm.get("title");
			xml+="</title>";
			xml+="<url>";	
			xml+=""+hm.get("link");
			xml+="</url>";
			xml+="<snippet>";		

			source=new Source((String)hm.get("content"));
			content = source.getTextExtractor().setIncludeAttributes(true).toString();

			xml+=""+content;
			xml+="</snippet>";
			xml+="</document>";
		}
	
	
		xml+="</searchresult>";
	
		return xml;
		*/
	
}	
